package com.ehome.poct.core.api.vo.order;

import com.ehome.poct.core.api.constant.enums.ScanTypeEnums;
import com.ehome.poct.core.api.dto.groups.ValidationGroups;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @auther: kuiba.peng
 * @date: 2022/10/28 11:03
 * @description: 唤起支付请求实体
 */
@Data
@EqualsAndHashCode
@ToString
public class PreOrderPayReqDTO implements Serializable {

    @ApiModelProperty("条码")
    @NotBlank(message = "authCode不能为空", groups = ValidationGroups.FirstGroups.class)
    private String authCode;

    @ApiModelProperty("条码")
    @NotNull(message = "scanType不能为空", groups = ValidationGroups.FirstGroups.class)
    private ScanTypeEnums scanType;

    @ApiModelProperty("检测订单号")
    @NotBlank(message = "orderNo不能为空")
    private String orderNo;
}
